See the online documentation here: http://www.arduino.cc/playground/Code/Bounce
